__author__ = 'tengxue'

#-*- coding: UTF-8 -*-

import MySQLdb

db = MySQLdb.connect("localhost","root","Aa123456","testdb")

cursor = db.cursor()

cursor.execute("SELECT VERSION()")

data = cursor.fetchone()

print "Database version : %s " % data

db.close()
